package com.aaa.hospital.Client.service.Impl;

import com.aaa.hospital.Client.mapper.DepartmentMapper;
import com.aaa.hospital.Client.pojo.Department;
import com.aaa.hospital.Client.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired
    private DepartmentMapper mapper;

    @Override
    public List<Department> queryAll() {
        return mapper.queryAll();
    }

    @Override
    public Department selectById(int id) {
        return mapper.selectById(id);
    }

    @Override
    public int delete(int id) {
        return mapper.delete(id);
    }

    @Override
    public int update(Department department) {
        return mapper.update(department);
    }

    @Override
    public int insert(Department department) {
        return mapper.insert(department);
    }
}
